var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});


/* GET home page. */
router.get('/test', function(req, res, next) {
  res.render('test', { title: 'test', param: req.query });
});

/* GET home page. */
router.post('/test', function(req, res, next) {
  res.render('test', { title: 'test', param: req.body });
});

module.exports = router;
